<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:18:23 GMT -->
<head>

	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	
	
	<title>欢迎使用绿宝后台管理员</title>
	<meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
	<meta name="description"
		content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">
		
	<!-- 设置浏览器不缓存，做测试用 -->
	<meta http-equiv="Pragma" content="no-cache" />   
	<meta http-equiv="Cache-Control" content="no-cache" />
	<meta http-equiv="Expires" content="0" />
	
	<link rel="shortcut icon" href="favicon.ico">
	<link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
	<link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
	
	<link href="css/animate.min.css" rel="stylesheet">
	<link href="css/style.min862f.css?v=4.1.0" rel="stylesheet">
	<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
	<!--[if lt IE 9]>
	    <meta http-equiv="refresh" content="0;ie.html" />
	    <![endif]-->
	<script>
		if (window.top !== window.self) {
			window.top.location = window.location;
		}
	</script>
	<script>
		$(document).ready(function() {
			$("#buttonGET").click(function() {
				$.get("http://localhost/GreenLife/user.do", function(data, status) {
					//alert("数据: " + data.result + "\n状态: " + status);
					/*if (data.result)
						open("index.html", windowName,
								windowFeatures,
								optionalArg4);*/
								var result = data.result;
								/*if(result==true){
									alert("test success");
									open("index.html", "GB主页","width=531,heigth=402,top=50,left=20", true);
								}*/
								window.navigate("index.html");
									
				});
			});
		});
		$(document).ready(function() {
			$("#buttonPOST").click(function() {
				$.post("http://localhost/GreenLife/user/login.do", {
					account : "18826402884",
					password : "123456"
				}, function(data, status) {
					alert("Data: " + data.data.id + "\nStatus: " + status);
				});
			});
		});
		
		$(function () {
	        $("#loginAction").bind("click", function () {
	        	$.ajax({
	                url:"http://localhost/GreenLife/user/login.do",
	                data: { 
	                	account: $("#account").val(), 
	                	password:$("#password").val()
	                },
	                dataType:"json",
	                type:"post",
	                success: function (data) {
	                	alert(data.resultMsg);
	                    if(data.result==true){
	                    	alert("go");
	                    	//window.navigate("index.html");
	                    	location.href="home.html?id="+data.data.id;
	                    }
	                }
	            });
	        })
	    });
		
		/*$(document).ready(function() {
			$("#loginAction").click(function() {
				var ACCOUNT = $("#account").val();
				var PASSWORD = $("#password").val();
				$.post("http://localhost/GreenLife/user/login.do", {
					account : ACCOUNT,
					password : PASSWORD
				}, function(data, status) {
					var result = data.result;
					if(result==true){
						alert("登陆成功！！");
						window.navigate("index.html");
					}else{
						alert("登陆失败！请重新登陆！");
					}
				});
			});
		});*/
	</script>

</head>

<body class="gray-bg"  background="img/login-background.jpg">

	<div class="middle-box text-center loginscreen  animated fadeInDown">
		<div>
			<div>
				<h1 class="logo-name">LB</h1>
			</div>
			<h3>欢迎使用 绿宝</h3>

			<form class="m-t" role="form" >
				<div class="form-group">
					<input id="account" type="text" class="form-control" placeholder="用户名"
						required="">
				</div>
				<div class="form-group">
					<input id="password" type="password" class="form-control" placeholder="密码"
						required="">
				</div>
			</form>
			<button  id="loginAction" type="submit" class="btn btn-primary block full-width m-b">登录</button>
			<p class="text-muted text-center">
				<a href="login.html#"><small>忘记密码了？</small></a> | 
				<a href="register.html">注册一个新账号</a>
			</p>
			<!-- 
			<button id="buttonGET" type="submit"
				class="btn btn-primary block full-width m-b">登录GET按钮</button> 
			<button id="buttonPOST" type="submit"
				class="btn btn-primary block full-width m-b">登录POST按钮</button>-->
		</div>
	</div>
	<script src="js/jquery.min.js?v=2.1.4"></script>
	<script src="js/bootstrap.min.js?v=3.3.6"></script>
	<script type="text/javascript"
		src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:18:23 GMT -->
</html>
